<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <style>
        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            /* 子元素水平居中 */
            margin-top: 80px;
            width: 80%;
            height: 200px;
            margin-left: auto;
            margin-right: auto;

            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 15px;
            padding: 16px;
        }

        .container img {
            width: 100px;
            height: 100px;
            margin-bottom: 8px;
        }

        .task-text {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
    </style>
</head>


<body>
    <header class="aui-bar aui-bar-nav" style="background-color: #03a9f4;position:fixed;" id="header">
        <a class="aui-pull-left aui-btn" tapmode onclick="closeWin();">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title" id="title">
            设备维保任务
        </div>
    </header>
    <div class="container" onclick="goPage('0')">
        <img src="../image/baoyang.png" alt="设备保养图标">
        <div class="task-text">设备保养</div>
    </div>
    <div class="container" style="margin-top: 30px;" onclick="goPage('1')">
        <img src="../image/dianjian.png" alt="设备点检图标">
        <div class="task-text">设备点检</div>
    </div>


</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript" src="../script/public.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
    //光标所在id
    var idSelector = "";
    var boxnum = "";
    var code = "";
    apiready = function () {

    };

    function goPage(type) {

        //打开页面
        api.openWin({
            name: 'selectEquipInfo',
            url: 'selectEquipInfo' + '.html',
            pageParam: {
                type: type
            },
        });
    };


    //返回按钮
    function closeWin() {
        api.closeWin({});
    }
</script>

</html>